Refactored remove education year algorithm.