Remove duplicate code in managers