[Dry-System] Using it to boot rails

Hello!

At work, we are using Rails and Dry-Rails (+ ROM-Rails) but it is very heavy every time we want to boost specs for example it’s minima 20seconds.

I came up with the idea to reverse the dependency and use Dry-System at the top level and encapsulate the Rails behaviors only for the Application part and keep my domains and infrastructure free from rails (and speed-up spec boot time for domain code [no rails, no rom])

How can I reverse the process and keep all the features of rails (rails s, rails g, etc)?

Also, it is a good idea?

My main problem is boot time, Rails load so much gems, ROM call all tables at boot, etc.