Refactor definers to lots of common code.