encapsulate command configuration logic in base class