Removed unused code causing failing tests.
The action will now pass properly when running an action.