How to switch mutual funds from regular plan to direct plans in demat mode?

invest in direct plans of mutual funds