Moved misc methods in Commands to separate class.

Signed-off-by: Lucas Arnström <lucasarnstrom@gmail.com>