Instead of hardcoding the threshold and keep duration in a header, expose them as options for users to configure and set old hardcoded values as the new defaults for those options.