Refactorying source code