Remove constaints and add before actions