Split big functions