Level factory singleton as a static funtion