Refactored Customize Form frappe/frappe#478