Convert associations to structs and proxies