Simplify code in Web::Interface{Agent,Customer}

No functional changes