Refactor data retrieval to retrieve by Line name.