cleanup YdActiveRecord by moving many methods into behaviors