DOTS Animation referenced editor API in runtime asmdef

I am getting a build error referencing Unity.Animation .4:

Library\PackageCache\com.unity.animation@0.4.0-preview.1\Unity.Animation.Hybrid\BlobAssetStoreExtensions.cs(72,17): error CS0234: The type or namespace name 'AssetDatabase' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)

Due to this line in BlobAssetStoreExtensions.cs:

        static Entities.Hash128 GetAssetHash(UnityEngine.Object asset)
        {
            if (asset == null)
                return default;

            var result = new Entities.Hash128();
            if (UnityEditor.AssetDatabase.TryGetGUIDAndLocalFileIdentifier(asset, out var guid, out long fileID))
            {
                result = new Entities.Hash128(guid);
                result.Value.w ^= (uint)fileID;
                result.Value.z ^= (uint)(fileID >> 32);
            }
            else
            {
                result.Value.x = (uint)asset.GetInstanceID();
                result.Value.y = (uint)asset.GetType().GetHashCode();
                result.Value.z = 0xABCD;
                result.Value.w = 0xEF01;
            }

            return result;
        }

Nevermind, this issue is fixed in .4 preview 4