Remove unnecessary perform blocks.