Hoisted functions and vars in CompositeCommand