Moved URI rendering helper functions to api.rendering module