Refactored relationship space using has_and_belongs_to_many
Create two-way relationships between sources
Define relationships while creating sources