Group all require code together: move feature-detects inside of src