Added macros to latte setup in DI extension registration