mobile refactoring