Refactor line tool