Move warnings to methods