Setup generic relations with class_prepared signal