refactor out the options for the type form