Refactor Rake::Trema::LibraryTask.