Reduce the code

I suck.

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>