Factor out control creation