Changing to method reference in config controller