Refactors graphic_metrics_controller_helper to decrease complexity

Signed-off-by: David Carlos <ddavidcarlos1392@gmail.com>
Add codeclimate value.

Signed-off-by: David Carlos <ddavidcarlos1392@gmail.com>