Cleaning front/middle code boundaries