[#82004144] refactor: create and use inner command router class

Signed-off-by: Eric Tsiliacos <etsiliacos@pivotal.io>