Another tiny code-extraction

Signed-off-by: emanuele <emanuele45@gmail.com>