Refactor these back into here with a new name.