Move class methods into Line module.