refactor create command spec