Refactor out textobject