Cleanup metadata on resource operations so that swagger can generate accurate ui.