Source code refactoring