Potting brushless motor. This is best achieved with potting compounds.