You should have cleaned inside before paint.
I cleaned with degreaser, mashine dishwasher powder solution in hot water and a brush.
Finalized with pressure washer flushing inside and oil channels.
Keep an eye on the rubber end plug on left side of lower case. It will fly when flushing water in hole for oil pump in case.
If only miscolor, no debris that can come loose, no problem.
Drive chain cleaner spray is really good for dirt like that. Spray, brush and rinse. Tissues too.