Refactor string constant duplicate in BuildCommand and BuildCommandTest.