I've seen this default code in a few of the associations, is it work making this a more generalized solution?