Refactored common submission rest call stuff into a mixin