Cleanup scope creation with new create_scope factory
Cleanup scope creation with new create_scope factory

Makes code a little cleaner and removed heavy duplication.

fazibear/opal,jannishuebl/opal,wied03/opal,suyesh/opal,suyesh/opal,merongivian/opal,Ajedi32/opal,gabrielrios/opal,gausie/opal,kachick/opal,catprintlabs/opal,Mogztter/opal,gausie/opal,Ajedi32/opal,jgaskins/opal,c42engineering/opal,bbatsov/opal,Mogztter/opal,Flikofbluelight747/opal,suyesh/opal,domgetter/opal,catprintlabs/opal,Mogztter/opal,opal/opal,jgaskins/opal,iliabylich/opal,castwide/opal,jannishuebl/opal,jgaskins/opal,gausie/opal,c42engineering/opal,wied03/opal,c42engineering/opal,iliabylich/opal,opal/opal,merongivian/opal,opal/opal,fazibear/opal,merongivian/opal,castwide/opal,castwide/opal,wied03/opal,opal/opal,bbatsov/opal,jannishuebl/opal,bbatsov/opal,kachick/opal,fazibear/opal,Flikofbluelight747/opal,gabrielrios/opal,Ajedi32/opal,Mogztter/opal,gabrielrios/opal,domgetter/opal,iliabylich/opal,catprintlabs/opal,Flikofbluelight747/opal,kachick/opal,kachick/opal