Removes redundant PHP code from block template.