Dealing with the inconsistencies of judgment aggregation and social choice: A general proposal based on Theophrastus principle