Refactoring on cloning UIContexts