Refactoring that post class.