Move generating allowed check to registerStructure to apply to all structures