Require yaml in before_restart hook