Should probably put this in a shared include so both base and minimal can use it.