refactor code to suppress unnecessary "Rakefile" buffer.