Moved `get` command code to a separate class.
Moved `set` command code to a separate class.