Remove unnecessary constants from spec_helper.
Refactor shell completion.