Preparation code for contacts management business logic.