Cleaner way of building dup & null commands (which are just variants of noop command)