Remove duplicate code for parsing single associations