Optimal Entanglement Distillation Policies For Bipartite Quantum Switches