refactor example: configuring over hardcoding