Reduce duplication of ``synapse.app`` code.