This is the standard way of doing things, one should construct a peripheral object (even if it's a singleton). See issue #1330.