Refactor Rake::Trema::BuildTask.