Extract submitting to librato into class