We use just gradle scripts and call `apply from:` at the current project. But we are still on groovy. Still determining if it is optional (we have long configuration times). I understand we can probably not have the same when we convert gradle scripts to kotlin and your approach is a solution for it.