Convert the assets hook into an extension