Moving deep_update to common utils