[refact] Command parser to own source file.