Refactor Jetpack REST checks into separate method