[frontend] Clean based on rubocop suggestions