Fixing post-processors requires some smart parsing of the template. Let's turn that logic into a helper and use it everywhere.