UC-2921: Normalized push and insert operation into one function