Refactor to prepare cocoapod