Refactored stale page removal to a new method