Cleaning up the logic for the feed component creation page