Factor out compiling the Command literal.