Refactored route code into helper mixin. Transition back to map if users directly accesses node edit/new.