First step in eliminating code duplication between script snapshotting (in FLX build) and AOT, assembly AOT snapshotting.