Refactored to provide built-in support for shared command implementations