Taking inspiration from [Detectron2](https://detectron2.readthedocs.io/en/latest/tutorials/lazyconfigs.html)