It wasn't clear what you were asking for - that code is to display the contents of the custom field.
If you want to move the actual input then it's going to require some work to replicate the functionality of the custom_fields_macros
template while at the same time preventing that field from being displayed by that template.