Custom controls refactoring.