Refactored each fragment into separate classes