An important community hub is being taken over by a charity as the former owners ceased operations after 20 years.