Simplify outdatedness checking code