factory: use warnings module