Reorganize RuboCop code and drop dead code.
Upgrade to RuboCop 0.24.