Refactored: activity knowledge relation