Review some long methods

Signed-off-by: Fabien Crassat <fabien@crassat.com>