Export layers into separate files

Good afternoon.

Is there a way to export each layer in a file as a separate file? I get drawings with 20 or more layers that need to be separated so I can nest them for cutting on the CNC.