split into the functions for example:

cleanup_field