Extract uniqueness validation into module