Genericify this shit.

Signed-off-by: Mloc-Argent <colmohici@gmail.com>