Avoid having the same implementation in a conditional structure | CAST Appmarq