Moving iOS plist code into its own method