Split behaviors into a class.