Refactor purple.