Goalkeeper Adam Legzdins and midfielder James Bailey are to leave Derby when their contracts expire this summer.