Refactored custom Post service