Move coappearance functions into their own class.