Refactor Doc#to_admin_form