I'd prefer to get rid of these variables and just use baseUri + "/stages", etc where it's required. It will be more obvious what's going on.