Warning fix.
Split enemy factory code