Migrate from MultiSite to Single Site

My client no longer wants to continue the idea of multiple WP sites and hence I need to cancel the multisite subscription and migrate back to a single site WP installation. How do I do this?