It seems that this loop would be more naturally expressed as a fluid.transform followed by $.extend. Also the if (commonOptions) check is unnecessary