Refactor Rakefile & introduce `rake quality` task.