Posts selection refactoring