Pattern of constraining an object construction