refact the layout and models used by kernel modules