Move cached_property to general utils.