Move code to struct_mlp_layer.c