Refines code structures