Before code refactoring