For years I have been installing a magnet in differentials.
Below are two pictures of the location I find works well.
I do not glue it in place. The magnetic force keeps it there. This makes it easy to remove for cleaning.
There are also pictures of the magnets I use. They are available at most hardware stores.
Installing a magnet can greatly extend bearing life by removing contaminants.