Refactor inquire form and model.