Refactor to remove a now useless setup_logging hook