The specialized functions were kept for better code readability
and only had a few code differences (Otherwise the prior `RunIf`
would have worked but the code would have looked complex).
Using `if constexpr` makes code less redundant and easier to
read as the common code is grouped now.
Signed-off-by: Ameya Deshpande <ameyanrd@outlook.com>