Fix some rubocop issues

* Fix rubocop complaints
* Remove the ruby_prof dependency.
Revert "Fix some rubocop issues"

This reverts commit 7b894d95f0938cacc6732bdc6b590353ae1fa355.