Metamorphosis of a quantum Hall bilayer state into a composite fermion metal