Support configuring from return type