Removing unused endpoint prefix and url