Removes repetitive code blocks