Replace upload posts methods names with constants.