kasan: split out shadow.c from common.c