[TASK] Separate ext:statictemplates code from core