Move Mingle class to its own module