Moving code to fix a visibility issue

Signed-off-by: ubuntu <ubuntu@mira030.front.sepia.ceph.com>