Dedupe mw.config.get call

Follows-up 7241aa3abc25d3fe898e2.

Change-Id: I0e9c8e79ce7b1772ec486a61ccd7cce75272a901