ref Task #8497 Refactor Micropost model