Refactor signature_utils_for_outbound
Lots of small refactorings