lineid: Refactor LineId to become a pure hash-returning function