Clone Akonadi custom attribute instead of using nested if statements.