Moving toward a less hardcoded determination of the subdetectors