refactor merge command spec