Refactored FeatureGeneration to group together relations from the same s...

...entential argument pair