Refactor to use Line in Directives.handle