Properly retrieve codes that have expired.