Piranha
A tool for refactoring code related to feature flag APIs
...Unnecessary code clutter increases the overall complexity w.r.t maintenance resulting in reduced developer productivity The flags can interfere with other experimental flags (e.g., due to nesting under a flag that is always false) Presence of unused code in the source as well as the binary. Stale flags can also cause bugs. Piranha is a tool to automatically refactor code related to stale flags. At a higher level, the input to the tool is the name of the flag and the expected behavior, after specifying a list of APIs related to flags in a properties file.