Simplify code around name from request parameters