Move factories to spec directory.