style guide removing redundant code