Use the existing layers_to_create() method rather than reimplementing it.