Rename add idea function to be more general so they can be refactored and reused.