Rubocop: Fix deprecated hash methods