Add a BASE_URL constant to replace repetitive code