MB-100 Remove unneeded intermediate function.

Change-Id: I49340c1f58454055a8dd414001ff6d48b4fc6281
Reviewed-on: http://review.couchbase.org/31688
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>