Reorganize RuboCop code and drop dead code.