Move the code to the template

Signed-off-by: Suki <suki@missallsunday.com>
Replace all properties with context vars

Signed-off-by: Suki <suki@missallsunday.com>
Gotta strip all the layers

Signed-off-by: Suki <suki@missallsunday.com>
Fix the usual boo boos and be done with it!

Signed-off-by: Suki <suki@missallsunday.com>