Refactoring methods for creating table view cells