Move common utils to Shared.