Separate mount logic into its own module.