Code refactoring - effects