extract some common logic from plans, topics, tutorials controllers