Move url method to base class