VID-2079 breaking out entry point for gallery init