Broke out sparse object assignment as function.