Extract warning methods into module