I use a trick from my days as an analytical chemist. Wash the bottles with a little bit what you are going to store in them. After this the only contaminant in my developer bottle is developer; fixer in fixer, etc.