Refactor how to determine post_office_backend