Extracting the logic that defines if a page is blocked to utils. If that refactor make sense, I will create a next PR to cover both of the functions inside utils with tests.