Added function to get factories by attributes (for worldGen)