Refactor update past month class ids