Refactor instance.associations[]