Added type-agnostic namespace to smart constructor.