Refactoring Xcode file hierarchy code.