Refactor into object.