Factor out cell configuration into its own method