Structure refactoring. Migration to ARC (most of code).