Move reusable logic in TmsUserBundle to KunUserBundle