Colony is related to Habitat. Habitat is a type of Environment. 
Legislative is related to Court. you are likely to find Court in/at/on Town. 
Colony <--RelatedTo--> Habitat --IsA--> Environment 
Legislative <--RelatedTo--> Court --AtLocation--> Town 