Refactor "combinations".