DRY on controller

Signed-off-by: fpumir <fpumir@terredeweb.fr>